package org.gardenXml.diObjest;

//员工类
public class Emp {
    private Dept dept;
    private String eName;
    private int eAge;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public int geteAge() {
        return eAge;
    }

    public void seteAge(int eAge) {
        this.eAge = eAge;
    }

    public void  work(){
        System.out.println("员工开始工作"+eAge);
        dept.info();
    }
}

